﻿using ServiceCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{

    public enum materiel_type_state
    {
        启用 = 1,
        禁用 = 2
    }
    public class materiel_type
    {
        /// <summary>
        /// 物料类型ID
        /// </summary>
        public string materiel_type_id { get; set; }
        /// <summary>
        ///  所属上级ID
        /// </summary>
        public string parent_id { get; set; }
        /// <summary>
        /// 添加用户
        /// </summary>
        public string adduser { get; set; }
        /// <summary>
        ///  添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        /// <summary>
        /// 用于数据库内逻辑计算的数字ID
        /// </summary>
        public int materiel_type_no { get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        public int lv { get; set; }  
        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string materiel_type_name { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public materiel_type_state materiel_type_state { get; set; } 
    }
    /// <summary>
    /// 基础物料信息
    /// </summary>
    public class materiel_base
    {
        /// <summary>
        /// 基础物料ID
        /// </summary>
        public string materiel_id { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string materiel_name { get; set; }
        /// <summary>
        /// 物料类型 1
        /// </summary>
        public string materiel_type_one { get; set; }
        /// <summary>
        /// 物料类型 2
        /// </summary>
        public string materiel_type_two { get; set; }
        /// <summary>
        /// 物料类型 3
        /// </summary>
        public string materiel_type_three { get; set; }
        /// <summary>
        /// 物料图片
        /// </summary>
        public string materiel_pic { get; set; }
        /// <summary>
        /// 定义流水物料流水ID
        /// </summary>
        public string materiel_show_no { get; set; }
        /// <summary>
        /// 物料完整ID
        /// </summary>
        public string materiel_total_show_no { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string specifications { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        ///  用途描述
        /// </summary>
        public string use_des { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string adduser { get; set; }

        public materiel_base_state materiel_base_state { get; set; }
    }

    public enum materiel_base_state
    {
        启用 = 1,
        禁用 = 2
    }


    public class search_materiel_base : materiel_base
    {
        public string materiel_type_one_str { get; set; }
        public string materiel_type_two_str { get; set; }
        public string materiel_type_three_str { get; set; }
    }



    public class materiel_type_tree_model
    {
        /// <summary>
        /// 物料类型ID
        /// </summary>
        public string materiel_type_id { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string materiel_type_name { get; set; }
        /// <summary>
        /// 上级ID
        /// </summary>
        public string parent_id { get; set; }
        /// <summary>
        /// 下级
        /// </summary>
        public List<materiel_type_tree_model> children { get; set; }
        /// <summary>
        /// 物料类型状态
        /// </summary>
        public materiel_type_state materiel_type_state { get; set; }
    }

    public class materiel_base_query : Base_List_Params
    {
        /// <summary>
        /// 物料类型 1
        /// </summary>
        public string materiel_type_one { get; set; }
        /// <summary>
        /// 物料类型 2
        /// </summary>
        public string materiel_type_two { get; set; }
        /// <summary>
        /// 物料类型 3
        /// </summary>
        public string materiel_type_three { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string specifications { get; set; }
        /// <summary>
        /// 搜索类型
        /// </summary>
        public materiel_base_search_enum? search_type { get; set; }
        /// <summary>
        /// 搜索项
        /// </summary>
        public string search_value { get; set; }
    }
    public enum materiel_base_search_enum
    {
        物料编号 = 1,
        物料名称 = 2
    }
}
